//
//  WCNPiccPastPatientCell.m
//  WCN
//
//  Created by wsj2015 on 16/4/18.
//  Copyright © 2016年 ShanghaiCize Trade And Business Co., Ltd. All rights reserved.
//

#import "WCNPiccPastPatientCell.h"
#import "WCTSetTextTool.h"
@implementation WCNPiccPastPatientCell

- (void)awakeFromNib {
    // Initialization code
    [self setSeparatorInset:UIEdgeInsetsZero];
    if ([self respondsToSelector:@selector(setPreservesSuperviewLayoutMargins:)]) {
        [self setPreservesSuperviewLayoutMargins:NO];
    }
    if ([self respondsToSelector:@selector(setLayoutMargins:)]) {
        [self setLayoutMargins:UIEdgeInsetsZero];
    }
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

- (void)setModel:(WCNPastPatientModel *)model
{
    _model = model;
    
 
    WSJSetTxt(self.timeLabel, model.inputDate, @"(空)");
    WSJSetTxt(self.nameLabel, model.name, @"");
//    WSJSetTxt(self.statueLabel, model.nursingStatus, @"");
    if ([model.nursingStatus isEqualToString:@"MONITORING"]) {
        self.statueLabel.text = @"检测中";
    }else if ([model.nursingStatus isEqualToString:@"NURSING"]) {
        self.statueLabel.text = @"护理中";
    }else if ([model.nursingStatus isEqualToString:@"DISCHARGED"]) {
        self.statueLabel.text = @"已出院";
    }else if ([model.nursingStatus isEqualToString:@"DEPT_TRANSFERRED"]) {
        self.statueLabel.text = @"转科室";
    }else if ([model.nursingStatus isEqualToString:@"HOSPITAL_TRANSFERRED"]) {
        self.statueLabel.text = @"转院";
    }else if ([model.nursingStatus isEqualToString:@"DEAD"]) {
        self.statueLabel.text = @"死亡";
    }
    
}

@end
